import request from '@/utils/request'
import qs from 'qs'

export function partnerList(data) {
  return request({
    url: 'tenant/partner/list',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partnerAdd(data) {
  return request({
    url: 'tenant/partner/add',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partnerInitDb(id) {
  return request({
    url: 'tenant/partner/initDb',
    method: 'post',
    data: qs.stringify({ id: id })
  })
}

export function partnerStatus(data) {
  return request({
    url: 'tenant/partner/status',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partnerDomainList(data) {
  return request({
    url: 'tenant/partner_domain/list',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partnerDomainAdd(data) {
  return request({
    url: 'tenant/partner_domain/add',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function partnerDomainStatus(data) {
  return request({
    url: 'tenant/partner_domain/status',
    method: 'post',
    data: qs.stringify(data)
  })
}
